const api = '/api/public'
export default {
  //获取账号
  getAccount: (...args) => uni.$request.post(`${api}/getAccount`, ...args),
  // 获取token
  getToken: (...args) => uni.$request.post(`${api}/getToken`, ...args),
  //微信授权初始化
  wxJsApiInit: (...args) => uni.$request.post(`${api}/wxJsApiInit`, ...args),
  // 微信授权
  loginByOAuth2: (...args) =>
    uni.$request.post(`${api}/loginByOAuth2`, ...args),
  //退出登录
  loginout: (...args) => uni.$request.post(`${api}/loginout`, ...args),
  // 发送验证码
  sendSms: (...args) => uni.$request.post(`${api}/sendSms`, ...args),
  //用户登录
  mobileLogin: (...args) => uni.$request.post(`${api}/mobileLogin`, ...args),
  // 获取小程序码
  getQrCode: (...args) => uni.$request.post(`${api}/getQrCode`, ...args),
  //小程序授权绑定手机号
  bindMobileByWeiXin: (...args) =>
    uni.$request.post(`${api}/bindMobileByWeiXin`, ...args),
  // 抖音小程序授权绑定手机号
  bindMobileByDouyin: (...args) =>
    uni.$request.post(`${api}/bindMobileByDouyin`, ...args),
  //支付宝小程序授权绑定手机号
  bindMobileByAli: (...args) =>
    uni.$request.post(`${api}/bindMobileByAli`, ...args),
  // 生成二维码
  // createQrcode: (...args) => uni.$request.post(`${api}/createQrcode`, ...args),

  // 生成小程序urlLink
  getUrlLink: (...args) => uni.$request.post(`${api}/getUrlLink`, ...args),
  //生成小程序shortLink
  getShortLink: (...args) => uni.$request.post(`${api}/getShortLink`, ...args),
  // 获取用户端微信小程序模板消息列表
  getTemplateList: (...args) =>
    uni.$request.post(`${api}/getWxMiniProgramTemplateIds`, ...args),
  // 错误日志提交
  addSystemErrorLog: (...args) =>
    uni.$request.post(`${api}/addSystemErrorLog`, ...args)
}

// getTemplateList: ApiObj.public + '/getWxMiniProgramTemplateIds', //获取用户端微信小程序模板消息列表
